#pragma once
#include "BaseFunByOneVar.h"

namespace Net
{

class FunByTan : public BaseFunByOneVar
{
public:
    FunByTan() : BaseFunByOneVar(FunType_E::Tan_E, "Tan")
    {

    }

    ~FunByTan()
    {

    }

    Value_t runFun(Value_t x) final
    {
        return std::tan(x);
    }

    Value_t runDiff(Value_t x) final
    {
        return 1 / std::pow(std::cos(x), 2);
    }
};

}